<script type='text/javascript'>
    var chartParams = {{{ chartParams }}}
    _.each(chartParams.layers, function(el){
        el.data = polyjs.data(el.data)
    })
    var graph_{{{  chartId  }}} = polyjs.chart(chartParams);
</script>